﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace ZgOffice.HostConsole
{
    class Program
    {
        static void Main(string[] args)
        {

            WSDualHttpBinding bind = new WSDualHttpBinding();
            bind.UseDefaultWebProxy = false;
            //bind.SendTimeout = TimeSpan.Parse("00:01:40");
            //bind.ReceiveTimeout = TimeSpan.Parse("00:10:00");
            //bind.MaxBufferPoolSize = 2147483647;
            //bind.MaxReceivedMessageSize = 2147483647;
            Uri baseAddress = new Uri("http://127.0.0.1:6549/Service");
            ServiceHost host = new ServiceHost(typeof(ZgOffice.Services.OfficeService), baseAddress);
            host.AddServiceEndpoint(typeof(ZgOffice.IServices.IOfficeService), bind, "");
            host.Open();
            Console.ReadKey();
        }
    }
}
